Skip to content

security: encrypt SQLCipher key at rest via Electron safeStorage#42

Merged
NeuroKoder3 merged 1 commit intomainfrom
security/safestorage-encryption-key
Mar 27, 2026
Merged

security: encrypt SQLCipher key at rest via Electron safeStorage#42
NeuroKoder3 merged 1 commit intomainfrom
security/safestorage-encryption-key

Conversation

@NeuroKoder3
Copy link
Owner

Summary

  • Replaces plaintext encryption key storage with Electron's \safeStorage\ API, which delegates to the OS-native keychain (DPAPI on Windows, Keychain on macOS, libsecret on Linux)
  • The on-disk key file (.transtrack-key) is now an opaque binary blob that cannot be used without the OS user's credentials
  • Transparent migration: existing plaintext keys are automatically re-encrypted on first read when \safeStorage\ is available
  • Graceful fallback: if \safeStorage\ is unavailable (e.g. headless Linux without a keyring daemon), falls back to the prior plaintext + \

@NeuroKoder3 NeuroKoder3 merged commit 0db2637 into main Mar 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant